import { legacy_createStore as createStore, applyMiddleware } from 'redux'
import reducers from './reduces'
import reduxThunk from 'redux-thunk'

const store = createStore(reducers, applyMiddleware(reduxThunk))

// // 组件中触发修改仓库事件
// store.dispatch(action1)
// // 其他组件中获取仓库数据
// console.log(store.getState())

export default store